package com.lovebridge.ui;

import org.zkoss.zk.ui.Component;
import org.zkoss.zul.Toolbarbutton;

/**
 * ExpandableWindow
 */
public class ExpandableWindow extends BaseWindow
{
    public void onExpand()
    {
        Toolbarbutton button = (Toolbarbutton) getFellow("expandButton");
        Component searchForm = getFellow("searchForm");
        searchForm.setVisible(!searchForm.isVisible());
        if (searchForm.isVisible())
        {
            button.setImage("images/collapse.gif");
        }
        else
        {
            button.setImage("images/expand.gif");
        }
    }
}
